import axios from './axios'

//上传考勤设备信息图片到服务器
// export function getQualityPartList(params) {
//     const url = '/ms/api/equip/upload'
//     return axios.post(url, params)
// }


// 质量管理模块

// 获取检查部位
export function getQualityPartList(params) {
    const url = '/ms/api/safety/part/list'
    return axios.get(url, params)
}
// 新增检查部位
export function qualityPartAdd(params) {
    const url = '/ms/api/safety/part/add'
    return axios.post(url, params)
}
// 修改检查部位
export function qualityPartEdit(params) {
    const url = '/ms/api/safety/part/edit'
    return axios.post(url, params)
}
// 删除检查部位
export function qualityPartDel(params) {
    const url = '/ms/api/safety/part/del/'
    return axios.post(url + params)
}

//批量导入材料
export function getImportExcel(params) {
    const url = '/ms/api/safety/part/importExcel'
    return axios.post(url, params)
}

// 获取检查记录
export function getSafetyRecordList(params) {
    const url = '/ms/api/safety/check/list'
    return axios.get(url, params)
}
//问题上报
export function problemReportAdd(params) {
    const url = '/ms/api/safety/check/add'
    return axios.post(url, params)
}
//人员获取
export function getUserList(params) {
    const url = '/ms/api/safety/check/user/list'
    return axios.get(url, params)
}
//问题上报
export function safetyProblemReportDetails(params) {
    const url = '/ms/api/safety/check/desc'
    return axios.get(url, params)
}

// 提交处理流程
export function safetyProblemReportLog(params) {
    const url = '/ms/api/safety/check/log'
    return axios.post(url, params)
}


// 获取问题类型列表
export function getIssueTypeList(params) {
    const url = '/ms/api/safety/issue/type/list'
    return axios.get(url, params)
}

// 新增问题类型
export function getIssueTypeAdd(params) {
    const url = '/ms/api/safety/issue/type/add'
    return axios.post(url, params)
}
// 编辑问题类型
export function getIssueTypeEdit(params) {
    const url = '/ms/api/safety/issue/type/edit'
    return axios.post(url, params)
}
// 删除问题类型
export function getIssueTypeDel(params) {
    const url = '/ms/api/safety/issue/type/del/'
    return axios.post(url + params)
}
// 获取质量明细
export function getIssueList(params) {
    const url = '/ms/api/safety/issue/list'
    return axios.get(url, params)
}
// 新增质量明细
export function getIssueAdd(params) {
    const url = '/ms/api/safety/issue/add'
    return axios.post(url, params)
}
// 修改质量明细
export function getIssueEdit(params) {
    const url = '/ms/api/safety/issue/edit'
    return axios.post(url, params)
}
// 质量明细禁用、启用
export function getIssueEnable(params) {
    const url = '/ms/api/safety/issue/enable'
    return axios.get(url, params)
}
// 删除问题类型
export function getIssueDel(params) {
    const url = '/ms/api/safety/issue/del/'
    return axios.post(url + params)
}

// 获取统计分析
export function problemStatistics(params) {
    const url = '/ms/api/safety/check/statistics'
    return axios.get(url, params)
}
// 获取质量问题明细列表
export function issueDeptIdList(params) {
    const url = '/ms/api/safety/issue/deptIdList'
    return axios.get(url, params)
}

//问题上报导出
export function getSafetyCheckExport(params) {
    const url = '/ms/api/safety/check/export'
    return axios.get(url, params)
}

// 删除问题
export function getIssueCheckDel(params) {
    const url = '/ms/api/safety/check/del/'
    return axios.post(url + params)
}
/*
* 罚款单
* */


//查询罚款单列表
export function getSafetyFineList(params) {
    const url = '/ms/api/safety/fine/list'
    return axios.get(url, params)
}
export function getSafetyFineNum(params) {
    const url = '/ms/api/safety/fine/num'
    return axios.get(url, params)
}

//添加罚款单
export function setSafetyFineAdd(params) {
    const url = '/ms/api/safety/fine/add'
    return axios.post(url, params)
}
//审批/批准罚款单
export function setSafetyFineComplete(params) {
    const url = '/ms/api/safety/fine/complete'
    return axios.post(url, params)
}
//删除罚款单
export function setSafetyFineDel(params) {
    const url = '/ms/api/safety/fine/del/'
    return axios.post(url+params)
}

/*
* 危大工程-字典
* */
//危大字典
export function getDangerDictList(params) {
    const url = '/ms/api/safety/danger/dict/list'
    return axios.get(url, params)
}
//危大字典-管控要点
export function getDangerDictControlList(params) {
    const url = '/ms/api/safety/danger/dict/control/list'
    return axios.get(url, params)
}
//管控要点
export function getDangerControlList(params) {
    const url = '/ms/api/safety/danger/control/list'
    return axios.get(url, params)
}
//统计危大工程台账
export function getDangerStatistical(params) {
    const url = '/ms/api/safety/danger/statistical'
    return axios.get(url, params)
}
//危大工程台账列表
export function getDangerList(params) {
    const url = '/ms/api/safety/danger/list'
    return axios.get(url, params)
}
//导出危大代办数据
export function getDangerExport(params) {
    const url = '/ms/api/safety/danger/export'
    return axios.get(url, params)
}

//新建危大工程台账
export function getDangerAdd(params) {
    const url = '/ms/api/safety/danger/add'
    return axios.post(url, params)
}
//删除危大工程台账
export function getDangerDel(params) {
    const url = '/ms/api/safety/danger/del/'
    return axios.post(url+params)
}
//验收表验收列表
export function getDangerAcceptList(params) {
    const url = '/ms/api/safety/danger/accept/list'
    return axios.get(url, params)
}
//删除验收表验收
export function getDangerAcceptDel(params) {
    const url = '/ms/api/safety/danger/accept/'
    return axios.post(url+params)
}
//验收表验收文件上传
export function getDangerAcceptUploadImg(params) {
    const url = '/ms/api/safety/danger/accept/uploadImg'
    return axios.post(url,params)
}
//完成验收表验收
export function getDangerCommit(params) {
    const url = '/ms/api/safety/danger/commit/'
    return axios.post(url+params)
}
//查询当前进度、施工旁站、一般验收
export function getDangerExt(params) {
    const url = '/ms/api/safety/danger/ext'
    return axios.get(url, params)
}
//删除当前进度、施工旁站、一般验收
export function getDangerExtDel(params) {
    const url = '/ms/api/safety/danger/ext/del/'
    return axios.post(url+params)
}
//危大工程资料
export function getDangerAttach(params) {
    const url = '/ms/api/safety/danger/attach'
    return axios.get(url, params)
}
//保存危大文件
export function getDangerAttachSave(params) {
    const url = '/ms/api/safety/danger/attach/save'
    return axios.post(url, params)
}
//问题隐患列表
export function getDangerCheckList(params) {
    const url = '/ms/api/safety/danger/check/list'
    return axios.get(url, params)
}
//问题隐患详情
export function getDangerCheckDetail(params) {
    const url = '/ms/api/safety/danger/check/details'
    return axios.get(url, params)
}
//删除问题隐患
export function getDangerCheckDel(params) {
    const url = '/ms/api/safety/danger/check/del/'
    return axios.post(url+params)
}
/*
*
* 责任区域
* */

//责任区域列表
export function getAreaList(params) {
    const url = '/ms/api/safety/area/list'
    return axios.get(url, params)
}
//删除责任区域
export function getAreaDel(params) {
    const url = '/ms/api/safety/area/del/'
    return axios.post(url+params)
}
//新增责任区域
export function getAreaAdd(params) {
    const url = '/ms/api/safety/area/add'
    return axios.post(url,params)
}
//修改责任区域创 建 人：
export function getAreaEdit(params) {
    const url = '/ms/api/safety/area/edit'
    return axios.post(url,params)
}

//导出安全罚款单
export function exportFine(params) {
    const url = '/ms/api/safety/fine/export'
    return axios.get(url,params)
}



/*
*
* 整改通知单
*
* */
//整改通知单列表
export function getSafetyRectifyList(params) {
    const url = '/ms/api/safety/rectify/list'
    return axios.get(url, params)
}
//整改通知单详情
export function getSafetyRectifyDetails(params) {
    const url = '/ms/api/safety/rectify/details'
    return axios.get(url, params)
}
//删除整改通知单
export function setSafetyRectifyDel(params) {
    const url = '/ms/api/safety/rectify/del/'
    return axios.post(url+params)
}
//添加整改通知单
export function setSafetyRectifyAdd(params) {
    const url = '/ms/api/safety/rectify/add/'
    return axios.post(url,params)
}
//编辑整改通知单
export function setSafetyRectifyEdit(params) {
    const url = '/ms/api/safety/rectify/edit/'
    return axios.post(url,params)
}
//整改通知单导出
export function getSafetyRectifyExport(params) {
    const url = '/ms/api/safety/rectify/export'
    return axios.get(url, params)
}
